<extend name="Public/base"/>

<block name="body">
	<div class="main-title">
		<h2>公众号相关设置</h2> 
	</div>
		<div class="tab-wrap">
		<ul class="tab-nav nav">    
			<!-- <li class=""><a href="{:U('sms')}">短信配置</a></li>  -->
			<li class="current"><a href="{:U('mp')}">公众号配置</a></li> 
		</ul> 
		<div class="tab-content">
			<form action="{:U('mp')}" method="post" class="form-horizontal"> 
			<!-- <div class="form-item">
				<label class="item-label">公众号名称<span class="check-tips"></span> </label>
				<div class="controls">
				<input type="text" class="text input-large" name="config[name]" value="{$config.name}">				
				</div>
			</div>  -->
			<!-- <div class="form-item">
				<label class="item-label">公众号原始id<span class="check-tips"></span> </label>
				<div class="controls">
				<input type="text" class="text input-large" name="config[ghid]" value="{$config.ghid}">				
				</div>
			</div>		 -->
			<div class="form-item">
				<label class="item-label">AppID<span class="check-tips"></span> </label>
				<div class="controls">
				<input type="text" class="text input-large" name="config[appid]" value="{$config.appid}">				
				</div>
			</div>		

			<div class="form-item">
				<label class="item-label">AppSecret<span class="check-tips"></span> </label>
				<div class="controls">
				<input type="text" class="text input-large" name="config[appsecret]" value="{$config.appsecret}">				
				</div>
			</div>

			<div class="form-item" style='display:none'>
				<label class="item-label">Token<span class="check-tips"></span> </label>
				<div class="controls">
				<input type="text" class="text input-large" name="config[token]" value="{$config.token}">				
				</div>
			</div>
			<div class="form-item" style='display:none'>
				<label class="item-label">微信支付商户号<span class="check-tips"></span> </label>
				<div class="controls">
				<input type="text" class="text input-large" name="config[mchid]" value="{$config.mchid}">				
				</div>
			</div> 
			<div class="form-item" style='display:none'>
				<label class="item-label">微信支付API密钥<span class="check-tips"></span> </label>
				<div class="controls">
				<input type="text" class="text input-large" name="config[key]" value="{$config.key}">				
				</div>
			</div>		 
			
			<div class="form-item">
				<label class="item-label"></label>
				<div class="controls">
					<button type="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">确 定</button>				
					<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
				</div>
			</div> 
			</form>
		</div>
	</div>
</block>

<block name="script">

</block>
